import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/home/Home.vue'
import Layout from '../layout/Layout.vue'
import Login from '../views/Login.vue'

import Dataresources from '../views/dataresources/Dataresources.vue'
// import Download from '../views/download/Download.vue'
import Interface from '../views/interface/Interface.vue'
import Scheduling from '../views/Scheduling/Scheduling.vue'
import Subjectquery from '../views/Subjectquery/Subjectquery.vue'
// import Zonedetails from '../views/interface/Zonedetails.vue'
Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/layout/home'
  },
  {
    path:'/layout', //布局路由
    name:'Layout',
    component:Layout,
    children:[
      {
        path: 'home', //首页
        name: 'home',
        component: Home
      },

      {
        path: 'dataresources', //数据资源
        name: 'dataresources',
        component: Dataresources
      },
      // {
      //   path: 'download', //下载专区
      //   name: 'download',
      //   component: Download
      // },
      {
        path: 'Interface', //接口专区
        name: 'Interface',
        component: Interface
      },
      {
        path: 'Scheduling', //调度文件
        name: 'Scheduling',
        component: Scheduling
      },
      {
        path: 'Subjectquery', //主题查询
        name: 'Subjectquery',
        component: Subjectquery
      },
       
      // {
      //   path: 'Zonedetails', //详情
      //   name: 'Zonedetails',
      //   component: Zonedetails
      // },
      {
        path: 'about',
        name: 'About',
        component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
      }
    ]
  },
  {
    path:'/login',
    name:'Login',
    component:Login
  }
  
]

const router = new VueRouter({
  routes
})

export default router
